import flet as ft
from ui.main_ui import ToolboxApp


def main(page: ft.Page):
    page.title = "Python Toolbox"
    page.window_width = 800
    page.window_height = 600
    page.window_resizable = True

    # 加载主界面
    toolbox_app = ToolboxApp(page)
    page.add(toolbox_app.build())


ft.app(target=main)
